﻿using DoNetDrive.Core.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _8280WEBSocket.Command.Remote
{
    /// <summary>
    /// 校时 日期时间同步
    /// </summary>
    public class SetTime : Json.JsonCommand
    {
        public SetTime(INCommandDetail cd, DateTime time, string user) : base(cd, null)
        {
            Reply = "SetTime";
            mSendObject = new { cmd = Reply, user, time = time.ToString("yyyy-MM-dd HH:mm:ss") };
            mJsonResult = (s) => _Result = new CommandResult(s);
        }
    }
}
